﻿#ifndef MAINDRAWWIDGET_H
#define MAINDRAWWIDGET_H

#include <QWidget>
#include <QPainter>
#include <QPen>
#include <QPalette>
#include <cglobals.h>
#include <QFont>
#include <general.h>

class MainDrawWidget : public QWidget
{
    Q_OBJECT
public:
    explicit MainDrawWidget(QWidget *parent = nullptr);
    ~MainDrawWidget();
    void setCurvesList(QVector<PDATA_CONTEXT>* pCurvesList);
    void setCurrentCycle(int cur_cycle);
    void setScale(int scale);
    void setDataSource(int source);
    void setPause(bool flag);
    void setSize(int width, int height);


protected:
    void paintEvent(QPaintEvent *);

private:
    QVector<PDATA_CONTEXT>* pCurvesList = NULL;
    int cur_cycle;
    int scale;
    int datasource;
    bool pauseflag;
    int width;
    int height;
};

#endif // MAINDRAWWIDGET_H
